package com.example.demo.service;

import com.example.demo.mapper.WatchlistMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class WatchlistImpl implements WatchlistService {

    @Autowired
    private WatchlistMapper watchlistMapper;

    @Override
    public int getFollowCountByUserId(int userId) {
        return watchlistMapper.countFollowsByUserId(userId);
    }
}

